package com.study.pojo;

import java.util.Date;

/**
 * 订阅表
 * @Author Miss kun
 * @Date 2020/10/8 20:00
 * @Version 1.0
 */
public class Orders {

    private Integer id;
    private Integer user_id;
    /**
     * 图书的作品名字
     */
    private String title;

    /**
     * 图书的作者
     */
    private String author;

    /**
     * 章节的名称
     */
    private String chapter_title;

    /**
     * 图书的图片信息
     */
    private String image;

    private Integer book_id;

    private Integer chapter_id;

    private Integer orders_status;
    private Date date;

    public Orders(Integer user_id, Integer book_id, Integer chapter_id,String chapter_title, Integer status) {
        this.user_id = user_id;
        this.book_id = book_id;
        this.chapter_title = chapter_title;
        this.chapter_id = chapter_id;
        this.orders_status = status;
    }

    public Orders() {
    }

    public String getChapter_title() {
        return chapter_title;
    }

    public void setChapter_title(String chapter_title) {
        this.chapter_title = chapter_title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getOrders_status() {
        return orders_status;
    }

    public void setOrders_status(Integer orders_status) {
        this.orders_status = orders_status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getBook_id() {
        return book_id;
    }

    public void setBook_id(Integer book_id) {
        this.book_id = book_id;
    }

    public Integer getChapter_id() {
        return chapter_id;
    }

    public void setChapter_id(Integer chapter_id) {
        this.chapter_id = chapter_id;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", image='" + image + '\'' +
                ", book_id=" + book_id +
                ", chapter_id=" + chapter_id +
                ", orders_status=" + orders_status +
                ", date=" + date +
                '}';
    }
}
